	var canvas = null;
	var context = null;
	var GUI = null;
	var mygame = null;
	var options = {mouseControls:false,musicOn:false};
	
	function init()
	{
		canvas = document.getElementById("mycanvas");
		context = canvas.getContext("2d");
		GUI = new GUIManager();
		loadImages();
	}
	
	function loadImages()
	{
		if(GUI.images.checkStart())
		{
			GUI.setActiveScreen("mainScreen");
		}
		else
		{
			context.clearRect(0,0,770,500);
			context.fillStyle = "#000";  
			context.font = 'bold 32px Helvatica';
			context.fillText('Loading Images: '+GUI.images.loadedImages+" / "+GUI.images.imageToBeLoad, 300, 250);
			setTimeout("loadImages()",10);
		}
	}